<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AuthMenu extends Model
{
    protected $table = 'auth_menu';
    protected $guarded = ['id'];

    //关联试题
    public function child()
    {
        return $this->hasMany(AuthMenu::class, 'parent_menu_id', 'menu_id');
    }

}
